﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class MainContent : System.Web.UI.Page
    {
        private String idPage;
        private String idContent;
        protected void Page_Load(object sender, EventArgs e)
        {
            idContent = Request.QueryString["idCategorie"];
            idPage = Request.QueryString["idPage"];
            if (idContent == null) { idContent = (1).ToString(); }
            xdsPage.XPath = "/langue[@id = \"" + Session["CultureInfo.Name"] + "\"]/page[@id = \"" + idPage + "\"]/categorie[@id = \"" + idContent + "\"]";
            xdsPage.DataBind();
            xdsBanner.XPath = "/langue[@id = \"" + Session["CultureInfo.Name"] + "\"]/page[@id = \"" + idPage + "\"]/categorie[@id = \"" + idContent + "\"]";
            xdsBanner.DataBind();
            LoadContent(1);
        }

        protected void LoadContent(Int16 idContent)
        {

        }
    }
}